package com.xh.bussiness.system.service;



import com.xh.bussiness.system.bean.request.GroupUserRequest;
import com.xh.bussiness.system.model.Group;
import com.xh.bussiness.system.model.GroupUser;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;

/**
 * <p>
 * 用户与组关系表 服务类
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
public interface IGroupUserService extends IBaseService<GroupUser> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryGroupUserPage(XhPage page, GroupUserRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryGroupUser(GroupUserRequest bean);

    List<GroupUser> queryGroupUserByGroupId(String groupId);

    Integer queryGroupUserCountByGroupId(String groupId);

    List<GroupUser> queryGroupUserByUserId(String userId);

    boolean deleteByUserId(String userId,String groupId);

    public GroupUser queryGroupUerByUserIdAndGroupId(String userId, String groupId);

    public List<Group> queryAllGroupByUserId(String userId);

    List<Group> queryGroupByUserId(String userId);
}
